package com.xdf.xzymanagementsystem.dao;

import com.xdf.xzymanagementsystem.entity.JcDepartment;
import com.xdf.xzymanagementsystem.util.Example;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @Description : 部门
* @Author : 张柯
* @Date : 2020-12-31 14:42:38
*/
@Repository
public interface JcDepartmentMapper {
    int insert(JcDepartment record);

    int insertSelective(JcDepartment record);

    int multiInsert(List<JcDepartment> list);

    int insertDumplicateKeyUpdate(JcDepartment record);

    int updateByPrimaryKey(JcDepartment record);

    int updateByPrimaryKeySelective(JcDepartment record);

    int multiUpdate(List<JcDepartment> list);

    int deleteByPrimaryKey(Integer id);

    JcDepartment selectByPrimaryKey(Integer id);

    List<JcDepartment> selectAll();

    List<JcDepartment> selectByParam(JcDepartment record);

    int updateByExampleSelective(@Param("record") JcDepartment record,@Param("example") Example example);

    int deleteByExample(@Param("example") Example example);

    List<JcDepartment> selectByExample(@Param("example") Example example);

    int insertByExampleSelective(@Param("record") JcDepartment record,@Param("example") Example example);

    long countByExample(@Param("example") Example example);

}